<jsp:include page="header.jsp" />
<%@ page import="UnOfficeDeTourisme.Catalogue" %>
<%@ page import="UnOfficeDeTourisme.TypeEntree" %>
<%@ page import="java.util.List" %>
<link rel="stylesheet" type="text/css" href="CSS/leCSS.css" >

	<h1 class="titrePage"><%=request.getAttribute("pageTitle") %></h1>
	
	<form action="/OfficeTourisme/ajouterTypeEntree" method="post">
	<div>
    <table style="width: 100%;">
    <tr> <td>
    	<texte_debut class="texte_input"> Type Entree : </texte_debut>
		<input id="te" name="te" type="text" class="champ_input"/>
    </td></tr>
    <tr> <td>
    	<texte_debut class="texte_input"> Prix Type Entree : </texte_debut>
		<input id="pte" name="pte" type="text" class="champ_input"/>
    </td></tr>
    <tr> <td>
    <input class="btn_taille_egale" type="submit" value="Valider">
	<br>
	<input class="btn_taille_egale" type="button" value="Retour" onclick="document.location='/OfficeTourisme'">
	<input type="hidden" id="idvisite" name="idvisite" value="<%=request.getParameter("idvisite")%>">
    </td></tr>
    </table>
    </div>
	</form>
	
	
	<div>
    <table style="width: 100%;">
    
    <%
    	List<TypeEntree> listeTypesEntrees = (List<TypeEntree>) session.getAttribute("listeTypeEntree");
    
    	for (TypeEntree te : listeTypesEntrees) {
    %>
    <tr>
    <td style="width: 20%;" >
    <input class="btn_taille_egale" type="button" value="<%=te.nomTypeE+" => "+te.tarif+" euros" %>" onclick="document.location='/OfficeTourisme/gererTypesEntree?idvisite=<%=te.idTypeE %>'"/>
    </td>
    </tr>
    <%
    	}
    %>
    
    </table>
    </div>
		<br><br>
		<input class="btn_taille_egale" type="button" value="Retour" onclick="document.location='/OfficeTourisme/cataloguePresta'">
		<br>
		<input class="btn_taille_egale" type="button" value="Quitter" onclick="document.location='/OfficeTourisme/deconnect'">   
	
	
<jsp:include page="footer.jsp" />